package com.wxq.shape;

import android.graphics.Path;
import android.graphics.Path.Direction;

public class MapCircle extends MapPath {

	protected float xCoord;
	protected float yCoord;
	protected float radius;
		
	public MapCircle(float xCoord, float yCoord, float radius) {
		super(new Path());	
		this.xCoord = xCoord;
		this.yCoord = yCoord;
		this.radius = radius;
		mPath.addCircle(xCoord, yCoord, radius, Direction.CW);
		setDrawPath(new Path(mPath));
	}

	public MapCircle(float xCoord, float yCoord, float radius, float xOffset,float yOffset) {
		this(xCoord, yCoord, radius);
		offset(xOffset, yOffset);
	}

	public float getxCoord() {
		return xCoord;
	}

	public void setxCoord(float xCoord) {
		this.xCoord = xCoord;
	}

	public float getyCoord() {
		return yCoord;
	}

	public void setyCoord(float yCoord) {
		this.yCoord = yCoord;
	}

	public float getRadius() {
		return radius;
	}

	public void setRadius(float radius) {
		this.radius = radius;
	}
}
